package com.liu.community.exception;/*
 *@Author:Liu Xing-zhi
 *Description:错误信息枚举类
 *Date:Crated in 9:46 2021/10/12
 */

public enum ErrorCode implements  InterFaceErrorCode{
    QUESTION_NOT_FOUND(2001,"你找的问题已经不存在了，换个试试吧！"),
    COMMENT_PARAM_NOT_FOUND(2002,"没有选中任何问题或评论回复！"),
    NOT_LOGIN(2003,"没有登录，请先登录！"),
    SYSTEM_ERROR(2004,"服务着火了，待会再试试吧！"),
    TYPE_PARAM_ERROR(2005,"评论类型错误或不存在！"),
    COMMENT_NOT_FOUND(2006,"你回复的评论不存在，换个试试吧！"),
    CONTENT_IS_EMPTY(2007,"评论内容不能为空哦！"),
    READ_NOTIFICATION_FAIL(2008,"不能读别人信息哦！"),
    NOTIFICATION_NOT_FOUND(2009,"你找的消息已经不存在了！"),
    NOT_FOUND_TAG(2010,"这个tag不存在!"),
    NOT_UPDATE_SUCCESS(2011,"没有修改成功哦！"),
    BLOG_NOT_FOUND(2012,"你找的博客内容已经不存在了，换个试试吧！")
    ;

    private  String message ;
    private  Integer code;
    @Override
    public String getMessage() {
        return message;
    }

    ErrorCode(Integer code,String message ) {
        this.message = message;
        this.code = code;
    }

    @Override
    public Integer getCode(){
        return  code;
    }
}
